/*
 * userinfo_transfer.h
 *
 *  Created on: 2013-2-6
 *      Author: panqiuhui
 */

#ifndef USERINFO_TRANSFER_H_
#define USERINFO_TRANSFER_H_
#include <stdbool.h>
#include "../common_struct/userinfo.h"

//向服务器发送登录请求并等待回复
bool login(const struct login_request* request);

//登录成功并设置用户信息后，返回用户的信息
struct userinfo* get_user_info();

//向服务器发送编辑个人资料请求并等待回复
bool edit_personial_info(const struct userinfo_request *request);

//向服务器发送密码修改请求并等待回复
bool change_password(const struct change_pw_request *request);

//向服务器发送注册新用户的请求并等待回复
bool register_new_user(const struct userinfo_request *request);

#endif /* USERINFO_TRANSFER_H_ */
